package com.jiudaoliu.homeprototype.utils;

import java.util.UUID;

/**
 * @Package com.styles.codingstyle.utils
 * @Description: uuid
 * @Author 陈建
 * @Create: 2018-05-29 14:30
 * @Version 1.0
 * @Update: message
 */
public class UUIDUtils {
    /**
     * @Description: 返回基本的32位uuid字符串
     * @Param: []
     * @Return: java.lang.String
     * @Author: 陈建
     * @date: 2018/6/6 9:57
     */
    public static String getUUID_32() {
        String s = UUID.randomUUID().toString().replace("-", "");
        return s;
    }

    /**
     * @Description: 返回64位uuid字符串
     * @Param: []
     * @Return: java.lang.String
     * @Author: 陈建
     * @date: 2018/6/6 9:59
     */
    public static String getUUID_64() {
        return getUUID_32() + getUUID_32();
    }

    /**
     * @Description: 返回45位uuid+时间戳组合字符串
     * @Param: []
     * @Return: java.lang.String
     * @Author: 陈建
     * @date: 2018/6/6 9:57
     */
    public static String getUUID_45() {
        return getUUID_32() + System.currentTimeMillis();
    }
}
